
package entity;

import java.util.List;
import org.springframework.batch.item.ItemWriter;

/**
 *
 * @author wangbh
 */
public class MessagesItemWriter implements ItemWriter<Message>{

    public void write(List<? extends Message> items) throws Exception {
        System.out.println("write results");
        for (Message m : items ) {
            System.out.println(m.getContent());
        }
    }

}
